function data = scalingStandarize(X)
% scaling the any data X from [a, b] -> [-1, 1] or [0 1]
% method: (x - xmin)/(xmax - xmin)
maximums = max(X,[],1);
minimums = min(X,[],1);
N = size(X,1);

ranges = maximums - minimums;
data = (X - repmat(minimums, N, 1)) ./ repmat(ranges, N, 1);
end

